

#navBtn {
  width: 60px;
  height: 60px;
  position: fixed;
  right: 0;
  z-index: 90;
  background-color: var(--purple);
  border-bottom-left-radius: 10px;

  img {
    filter: brightness(0) invert(1);
  }
}

.rotated {
  transform: rotate(180deg);
  transition: transform 0.3s ease; /* Smooth spin */
}

#nav {
  width: 0;
  height: 100dvh;
  background-color: var(--blue);
  overflow-x: hidden;
  transition: width 0.1s linear;
  position: fixed;
  top: 0;
  scrollbar-width: none;
  z-index: 90;
}

.navHeading {
  width: 100%;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid white;
  
}

.navHeading h2{
  padding: 1rem 0.5rem;
  text-transform: uppercase;
  color: aliceblue;
  text-overflow: ellipsis;
  width: calc(100% - 46px);
}

.headingBtn {
  width: 30px;
  height: 30px;
  margin-right: 1rem;
  transition: transform 0.3s ease;
}


.tags {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 0;
  background-color: aliceblue;
  overflow-y: hidden;
  transition: max-height 0.2 linear;
}

.tag {
  padding: 1rem;
  text-transform: capitalize;
  text-decoration: none;
  border-bottom: 2px solid black;
  color: black;
}

/* ? media queries to edit css responsiveness */

/* mobile */
/* @media (min-width: 320px) {
 
} */

/* landscape mobile */
/* @media (min-width: 568px) {

} */

/* tablet */
@media (min-width: 768px) {
  #nav {
    width: 20vw;
  }
  #navBtn {
    display: none;
  }

}

/* desktop */
/* @media (min-width: 1024px) {
 
} */